
#include <avr/io.h>

/* Red LED: PA6*/
/* Green LED: PA7*/

#define RED_LED 6
#define GREEN_LED 7



void RedLED(char enable)
{
	if(enable)
		PORTA &= ~(1 << RED_LED);
	else
		PORTA |= (1 << RED_LED);	
}

void GreenLED(char enable)
{
	if(enable)
		PORTA &= ~(1 << GREEN_LED);
	else
		PORTA |= (1 << GREEN_LED);
}





void LedInit(void)
{
	DDRA |= (1 << RED_LED);	// set to output
	DDRA |= (1 << GREEN_LED);	// set to output

	GreenLED(1);

}


